// 引入路由
import Vue from "vue";
import VueRouter from "vue-router";

const One = () => import('../components/One.vue')
const Two = () => import('../components/Two.vue')
Vue.use(VueRouter)

export default new VueRouter({
    mode: 'history',
    routes: [
        {
            path: '/one',
            component: One
        },
        {
            path: '/two',
            component: Two
        }
    ]
})